#include <stdio.h>
int main() {
	FILE *p_file = fopen("a.bin", "rb");
	int arr[5] = {0};
	if(p_file) {
		int size = 0;
		size = fread(arr, sizeof(int), 10, p_file);
		printf("实际使用了%d个存储区\n", size);
		int num = 0;
		for(num = 0; num < 5; num++) {
			printf("%d ", arr[num]);
		}
		printf("\n");
		fclose(p_file);
		p_file = NULL;
	}
	return 0;
}
